package com.haoze.nurse.dao;

import com.haoze.common.mapper.MyMapper;
import com.haoze.nurse.model.NurseCatalogEntity;
import com.haoze.nurse.model.NurseFormEntity;
import com.haoze.repository.model.ListTreeEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: Chenchao
 * @CreateTime: 2019-11-13 09:06
 */
public interface NurseCatalogMapper extends MyMapper<NurseCatalogEntity> {

    List<NurseCatalogEntity> getCatalogList();

    List<NurseCatalogEntity> getFirstCatalog();

    List<Map<String, String>> formList(@Param("id") String id);

    List<Map<String, String>> queryList(@Param("text") String text, @Param("roleType") String roleType, @Param("stopFlag") String stopFlag);

    List<NurseFormEntity> getFromByCatalogId(@Param("id") String id);

    List<ListTreeEntity> getNurseCatalog();

    List<Map<String, String>> getTemplateByCatalogId(@Param("catalogId") String catalogId, @Param("roleType") String roleType);
}
